const user = {
  state: {
    userInfo: {
    }
  },
  mutations: {
    UPDATE_USERINFO (state, newinfo) {
      state.userInfo = newinfo
    }
  },
  actions: {
    setUserInfo ({commit}, user) {
      commit('setUserInfo', user)
    }
  }
}

export default user
